package com.ruoyi.business.service;

import java.util.List;
import com.ruoyi.business.domain.PurchaseReceipt;

/**
 * 进货单Service接口
 * 
 * @author ruoyi
 * @date 2025-03-20
 */
public interface IPurchaseReceiptService 
{
    /**
     * 查询进货单
     * 
     * @param id 进货单主键
     * @return 进货单
     */
    public PurchaseReceipt selectPurchaseReceiptById(Long id);

    /**
     * 根据单号查询进货单
     * 
     * @param receiptCode 进货单编号
     * @return 进货单
     */
    public PurchaseReceipt selectPurchaseReceiptByReceiptCode(String receiptCode);

    /**
     * 查询进货单列表
     * 
     * @param purchaseReceipt 进货单
     * @return 进货单集合
     */
    public List<PurchaseReceipt> selectPurchaseReceiptList(PurchaseReceipt purchaseReceipt);

    /**
     * 新增进货单
     * 
     * @param purchaseReceipt 进货单
     * @return 结果
     */
    public int insertPurchaseReceipt(PurchaseReceipt purchaseReceipt);

    /**
     * 修改进货单
     * 
     * @param purchaseReceipt 进货单
     * @return 结果
     */
    public int updatePurchaseReceipt(PurchaseReceipt purchaseReceipt);

    /**
     * 批量删除进货单
     * 
     * @param ids 需要删除的进货单主键集合
     * @return 结果
     */
    public int deletePurchaseReceiptByIds(Long[] ids);

    /**
     * 删除进货单信息
     * 
     * @param id 进货单主键
     * @return 结果
     */
    public int deletePurchaseReceiptById(Long id);
}
